package com.guigu.eduservice.mapper;

import com.guigu.eduservice.entity.Businessman;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 业务员表（含检测评估师，负责设备检测、求购跟进） Mapper 接口
 * </p>
 *
 * @author janecraft
 * @since 2025-09-27
 */
@Mapper
public interface BusinessmanMapper extends BaseMapper<Businessman> {


    //根据操作员的id查询业务员
    Businessman getOperatorId(Integer id);

    //根据业务员的id查询他分配了多少台设备
    Integer getCountByBusinessman_id(Long businessman_id);

}
